package com.szmmsoft.mp.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Description of the class.
 *
 * @author ethan
 * @version 1.0.0
 * @since 2024-10-18
 */
@Getter
@AllArgsConstructor
public enum BusinessCode {
    SUCESS(200, "ok"),
    UNAUTHORIZED(401, "还未授权，不能访问"),
    FORBIDDEN(403, "没有权限，禁止访问"),
    VALIDATION_ERROR(400, "校验错误"),
    INTERNAL_SERVER_ERROR(500, "服务器异常，请稍后再试");

    private final int code;
    private final String msg;
}
